package com.kmzx.one.project.service.impl;

import com.kmzx.one.project.mapper.SimpleMapper;
import com.kmzx.one.project.others.dto.BannerInfo;
import com.kmzx.one.project.service.SimpleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SimpleServiceImpl implements SimpleService {

    @Autowired
    private SimpleMapper simpleMapper;

    @Override
    public List<BannerInfo> findAllBanners() {
        List<BannerInfo> infos = simpleMapper.selectAllBanners();
        return infos;
    }
}
